package com.smart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.common.PageInfo;
import com.smart.model.domain.OperateUserDO;
import com.smart.model.request.OperateUserAddRequest;
import com.smart.model.request.OperateUserRequest;
import com.smart.model.request.OperateUserUpDatePasswordRequest;
import com.smart.model.request.OperateUserUpDateStatusRequest;
import com.smart.model.request.OperateUserUpdateRequest;
import com.smart.model.vo.OperateUserVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface OperateUserService extends IService<OperateUserDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
     OperateUserVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<OperateUserVO> pageQuery(OperateUserRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<OperateUserVO> listQuery(OperateUserRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(OperateUserAddRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(OperateUserUpdateRequest request);
    /**
     * 修改密码
     * @param request
     * @return
     */
    Boolean updatePasswordByKey(OperateUserUpDatePasswordRequest request);
    /**
     * 启用/禁用
     * @param request
     * @return
     */
    Boolean updateStatus(OperateUserUpDateStatusRequest request);
}
